package com.upcode.weighing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.upcode.weighing.domain.MsgTemplatePushRec;
import com.upcode.weighing.vo.message.MessagePushRespVo;
import com.upcode.weighing.vo.message.MsgPushReqVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 短信模板发送记录关联表 Mapper 接口
 * </p>
 *
 * @author chenyan
 * @since 2020-09-01
 */
@Mapper
public interface MsgTemplatePushRecMapper extends BaseMapper<MsgTemplatePushRec> {

    /**
     * 根据条件查询发送记录总数
     * @param vo
     * @return
     */
    Integer queryPageCount(@Param("vo") MsgPushReqVo vo);

    /**
     * 根据条件查询发送记录列表
     * @param from
     * @param size
     * @param vo
     * @return
     */
    List<MessagePushRespVo> queryPageList(@Param("fromPage") Long from, @Param("pageSize") Long size,
                                          @Param("vo") MsgPushReqVo vo);
}
